package com.cntcdt.api.db.dao;

import java.util.List;

import com.cntcdt.api.db.dao.base.ShopPicDaoBase;
import com.cntcdt.api.db.model.ShopPicModel;

/**
 * 这是cdt_shop_pic的Dao实现类
 */
public class ShopPicDao extends ShopPicDaoBase   {
    /**
     * ShopPicDao对象
     */
    private static ShopPicDao instance = new ShopPicDao();

    /**
     * 默认构造方法
     */
    private ShopPicDao() {
    }

    /**
     * 获得对象实例
     */
    public static ShopPicDao getInstance() { 
         return instance;
    } 
    
    public List<ShopPicModel> findByShopId(int shopId) {
        String sql = "SELECT * from " + TABLE + " where shopId = ?";
        return queryModelList(sql , new Object[]{shopId});
    }

}
